T
Type of object to get from the container.
LEADTOOLS Medical (Leadtools.Dicom.AddIn assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Retrieve<T>(String) Method
See Also 
Leadtools.Dicom.AddIn Namespace > ServiceLocator Class > Retrieve Method : Retrieve<T>(String) Method



name
Name of the object to retrieve.
name
Name of the object to retrieve.
Resolve an instance of the requested type with the given name from the container.

Syntax

Visual Basic (Declaration) 
Overloads Public Shared Function Retrieve(Of T)( _
   ByVal name As String _
) As T
Visual Basic (Usage)Copy Code
Dim name As String
Dim value As T
 
value = ServiceLocator.Retrieve(Of T)(name)
C# 
public static T Retrieve<T>( 
   string name
)
C++/CLI 
public:
static T^ Retrievegeneric<typename T>
( 
   String^ name
) 

Parameters

name
Name of the object to retrieve.

Type Parameters

T
Type of object to get from the container.

Return Value

The retrieved object.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Dicom.AddIn requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features